package com.wushi.lenovo.asia5b.app_ui.shopcar.listener;

import com.wushi.lenovo.asia5b.app_model.good.ShopModel;
import com.wushi.lenovo.asia5b.app_model.good.goodbean.GoodsModel;

import java.util.List;

/**
 * Created by zhangyuncai on 2020/3/2.
 */
public interface ShopCarListener {
    /**
     * 跳转商品详情
     *
     * @param goodsModel
     */
    void startGoodsDetailsActivity(GoodsModel goodsModel);

    void addGoods(GoodsModel goodsModel,int newQty);

    /**
     * 商品编辑
     *
     * @param goodsModel
     */
    void editGoods(GoodsModel goodsModel);

    /**
     * 商品删除
     *
     * @param goodsModel
     */
    void deleteGoods(GoodsModel goodsModel);

    /**
     * 商品选中
     *
     * @param goodsModel
     * @param shopModel
     */
    void selectGoods(ShopModel shopModel, GoodsModel goodsModel);

    /**
     * 商品选中
     *
     * @param goodsModelList
     */
    void selectGoods(List<GoodsModel> goodsModelList);

    /**
     * 是否是代购商品
     *
     * @return
     */
    boolean isDaigouGoods();
}
